﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="ProjectSem40701.Admin.User" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
    <title>
        Thành viên
    </title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">    
    
    <!--
        set tab active here
     -->
    <script type="text/javascript" language="javascript">
        setTab(document.getElementById("1"));
    </script>
    <!--
        end set tab active
     -->
    
    <div id="box">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
                
        <h3>Thành viên</h3>
        <telerik:RadGrid ID="rgrvUser" runat="server" AllowFilteringByColumn="True" 
            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource1">
        <MasterTableView CellSpacing="-1" DataSourceID="ObjectDataSource1">
            <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>

            <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="UserName" HeaderText="Tên tài khoản" 
                    SortExpression="UserName" UniqueName="UserName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UserIDCard" HeaderText="CMND" 
                    SortExpression="UserIDCard" UniqueName="UserIDCard">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Họ tên" SortExpression="UserFirstName" 
                    UniqueName="TemplateColumn1">
                    <ItemTemplate>
                        <asp:Label ID="lblFName" runat="server" Text='<%# Eval("UserFirstName") %>'></asp:Label>
                        &nbsp;<asp:Label ID="lblLName" runat="server" Text='<%# Eval("UserLastName") %>'></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn AllowFiltering="False" UniqueName="TemplateColumn">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkUID" runat="server" 
                            NavigateUrl='<%# Eval("UserId", "UserEdit.aspx?uid={0}") %>'>Xem</asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle Width="60px" />
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
        </telerik:RadGrid>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            OldValuesParameterFormatString="original_{0}" 
            SelectMethod="Get_tbl_ASPNET_User_Select_All" 
            
            
            TypeName="ProjectSem40701.Admin.AdminXSD.tbl_UserTableAdapters.tbl_ASPNET_User_Select_AllTableAdapter">
        </asp:ObjectDataSource>
    </div>
</asp:Content>
